/* 
	@Copyright (c) 2007 by Denis Riabtchik. All rights reserved. See license.txt and http://jgrouse.com for details@
	$Id: RefElement.java 371 2008-02-25 00:09:16Z denis.riabtchik $
*/
package jgrouse.jgdoc.elements;

import java.io.Serializable;

import jgrouse.jgdoc.api.IDocElement;

public class RefElement implements Serializable
{
	private static final long serialVersionUID = -5589052138732994741L;
	private IDocElement m_ref;
	
	public RefElement(IDocElement ref)
	{
		super();
		m_ref = ref;
	}
	
	public String getName()
	{
		return m_ref.getFullName();
	}
	
	public String toString()
	{
		StringBuffer sb = new StringBuffer();
		sb.append("<ref type=\"").append(m_ref.getComment().getCommentType().toString().toLowerCase())
		.append("\" refId=\"").append(m_ref.getFullName()).append("\"/>");
		return sb.toString();
	}

	public IDocElement getRef()
	{
		return m_ref;
	}
	
  
}
